package com.ruoyi.project.system.mapper;

import com.ruoyi.project.system.domain.SysPayOrder;
import java.util.List;
import java.util.Map;

/**
 * 进件查询支付Mapper接口
 */
public interface SysPayOrderMapper {

    List<Map<String, Object>> rankingList();

    List<Map<String, Object>> statistic(Long userId, String productId);

    /**
     * 查询用户成功交易单数
     *
     * @param userId 用户id
     * @return 成功交易单数
     */
    int selectSuccessPayCount(Long userId);

    /**
     * 查询进件查询支付
     *
     * @param orderNo 进件查询支付主键
     * @return 进件查询支付
     */
    public SysPayOrder selectSysPayOrderByOrderNo(String orderNo);

    /**
     * 查询进件查询支付列表
     *
     * @param SysPayOrder 进件查询支付
     * @return 进件查询支付集合
     */
    public List<SysPayOrder> selectSysPayOrderList(SysPayOrder SysPayOrder);

    /**
     * 新增进件查询支付
     *
     * @param SysPayOrder 进件查询支付
     * @return 结果
     */
    public int insertSysPayOrder(SysPayOrder SysPayOrder);


    public int updateSysPayOrderState(SysPayOrder SysPayOrder);
    /**
     * 修改进件查询支付
     *
     * @param SysPayOrder 进件查询支付
     * @return 结果
     */
    public int updateSysPayOrder(SysPayOrder SysPayOrder);

    /**
     * 删除进件查询支付
     *
     * @param orderNo 进件查询支付主键
     * @return 结果
     */
    public int deleteSysPayOrderByOrderNo(String orderNo);

    /**
     * 批量删除进件查询支付
     *
     * @param orderNos 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteSysPayOrderByOrderNos(String[] orderNos);
}
